package com.xysoft.admin.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Component;

@Component
public interface IManageRoleService extends IBaseService {
	/**
	 * 获取后台角色.
	 */
	public String get(HttpServletRequest request, HttpSession session);
	
	/**
	 * 获取组织选项.
	 */
	public String getOrgan(HttpServletRequest request, HttpSession session);
	
	/**
	 * 获取权限列表.
	 */
	public String getAction(HttpServletRequest request, HttpSession session);
	
	/**
	 * 添加或者修改角色.
	 */
	public Map<String,Object> addOrModify(HttpServletRequest request, HttpSession session);
	
	/**
	 * 删除角色.
	 */
	public Map<String,Object> remove(HttpServletRequest request, HttpSession session);
	
	/**
	 * 获取角色权限.
	 */
	public Map<String,Object> getAuto(HttpServletRequest request, HttpSession session);
	
	/**
	 * 保存角色权限.
	 */
	public Map<String,Object> save(HttpServletRequest request, HttpSession session);
}
